Make add_to_bridge() always leave the device up even when it bails out due to the...
authorAnil Madhavapeddy <anil@xensource.com>
Tue, 22 Aug 2006 13:59:16 +0000 (14:59 +0100)
committerAnil Madhavapeddy <anil@xensource.com>
Tue, 22 Aug 2006 13:59:16 +0000 (14:59 +0100)
commit973bbebcc3a29a334bc3c8da2d816e39f81230a2
tree4ef8b3954a562b9df50c565e426ef3279c7a5848
parent5db8d219b03597a23ad037bd7b940d73282dc4fa
Make add_to_bridge() always leave the device up even when it bails out due to the device already being present on the bridge.
This makes the script more idempotent if run twice (e.g. from hotplug and udev), since the second time the device will be taken down and not brought up again, leaving the host without networking.

Signed-off-by: Anil Madhavapeddy <anil@xensource.com>
tools/examples/xen-network-common.sh